#ifndef _XmlParser_h_
#define _XmlParser_h_

//common std lib
#include<stdio.h>
//open() and close()
#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>
#include <unistd.h>
//libxml2
#include<libxml/parser.h>
#include<libxml/tree.h>
#include<iostream>
//vector
#include<vector>
//logd() and loge()
#include"log.h"

using namespace std;

#ifdef loglabel
#undef loglabel
#define loglabel "XmlParser"
#endif

typedef struct typecolor_param_tag {
    std::string key;
    std::string value;
} tcp;

class XmlParser{
    public:
        XmlParser(char* path);
        ~XmlParser();
        XmlParser* getXmlParser(void); 
        void startParse(char* path);
        void dumpparamVector(void);
        std::string getValueFromKey(std::string key);
        std::vector<tcp> paramVector;

};

#endif
